import pandas as pd
list_all = []
data_path = 'd:/Python/study_data/stocks/'
for i in [1,2,4,6,7,8,9]:
    date_df = pd.read_csv(f'{data_path}sz00000{i}.csv')['date'].values
    list_all += date_df.tolist()
for j in [10,11,12,14,16,17,19,20]:
    date_df = pd.read_csv(f'{data_path}sz00000{i}.csv')['date'].values
    list_all += date_df.tolist()
list_set = set(list_all)
list_all = list(list_set)
# date_2_df = pd.read_csv(r'd:\Python\study_data\stocks\sz000002.csv')['date'].values
# date_4_df = pd.read_csv(r'd:\Python\study_data\stocks\sz000004.csv')['date'].values
# list_set = set(date_1_df.tolist() + date_2_df.tolist() + date_4_df.tolist())
# list_all = list(list_set)
list_all.sort()
data = pd.DataFrame(list_all)
data.to_csv('date.csv')
